// @ts-ignore
/* eslint-disable */
import { request } from '@umijs/max';

/** addTempTemplate POST /api/tempTemplate/add */
export async function addTempTemplateUsingPost(
  body: API.TempTemplateAddRequest,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseLong_>('/api/tempTemplate/add', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** deleteTempTemplate POST /api/tempTemplate/delete */
export async function deleteTempTemplateUsingPost(
  body: API.DeleteRequest,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseBoolean_>('/api/tempTemplate/delete', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** getTempTemplateById GET /api/tempTemplate/get */
export async function getTempTemplateByIdUsingGet(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.getTempTemplateByIdUsingGETParams,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseTempTemplate_>('/api/tempTemplate/get', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** getTempTemplateVOById GET /api/tempTemplate/get/vo */
export async function getTempTemplateVoByIdUsingGet(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.getTempTemplateVOByIdUsingGETParams,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseTempTemplateVO_>('/api/tempTemplate/get/vo', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** listTempTemplateByPage POST /api/tempTemplate/list/page */
export async function listTempTemplateByPageUsingPost(
  body: API.TempTemplateQueryRequest,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponsePageTempTemplate_>('/api/tempTemplate/list/page', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** listTempTemplateVOByPage POST /api/tempTemplate/list/page/vo */
export async function listTempTemplateVoByPageUsingPost(
  body: API.TempTemplateQueryRequest,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponsePageTempTemplateVO_>('/api/tempTemplate/list/page/vo', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** updateTempTemplate POST /api/tempTemplate/update */
export async function updateTempTemplateUsingPost(
  body: API.TempTemplateUpdateRequest,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseBoolean_>('/api/tempTemplate/update', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}
